import request from "@/utils/request";

/**
 * 用户名密码登录
 */
export const userAccountLogin = ({ account, password }) => {
  return request('/login','post',{account,password})
}
/**
 * 获取手机号验证码
 */
export const userMobileLogin = ({ mobile, code }) => {
  return request('/code', 'post', { mobile, code })
}
/**
 * 手机号登录
 */
export const userMobileLoginMsg= (mobile) => {
  return request('/login/code', 'get', { mobile })
}
/**
 * 手机号登录
 */
export const userRegister = (user) => {
  return request('/register', 'post', user)
}
